library flutter_video_info;

import 'src/flutter_video_info_platform_interface.dart';

class FlutterVideoInfo {
  /// 获取视频编码格式
  static Future<String?> getVideoCodec(String videoPath) =>
      FlutterVideoInfoPlatform.instance.getVideoCodec(videoPath);

  /// 视频压缩
  static Future<String?> compressVideo(String videoPath) =>
      FlutterVideoInfoPlatform.instance.compressVideo(videoPath);

  /// 压缩进度
  static Stream<double> get progressStream =>
      FlutterVideoInfoPlatform.instance.progressStream;

  /// 取消压缩
  static Future<void> cancelCompressing() =>
      FlutterVideoInfoPlatform.instance.cancelCompressing();
}
